//测试
// var base_url = 'https://vendormina.lzljtdpx.com/';
//正式
var base_url = 'https://vendorapi.lzljtdpx.com/';

App({
  onLaunch: function () {
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        that.globalData.windowHeight = res.windowHeight
      }
    })
  },
  globalData: {
    userInfo: null,
    accountInfo: {},
    base_url: base_url,
    error_toast_duration: 2000,
    login_url: base_url + 'user/login',
    payment_getWechatInfo_url: base_url + 'payment/getWechatInfo',
    orderList_url: base_url + 'couponsorder/list',
    orderInfo_url: base_url + 'order/info',
    orderDel_url: base_url + 'order/del',
    invoiceInfo_url: base_url + 'order/invoice',
    shopList_url:base_url+'shop/shopList',
    addAddress_url: base_url + "address/add", 
    addressInfo_url: base_url + "address/info", 
    editAddress_url: base_url + "address/modify", 

    servicePhone: '4000788519', //客服电话
    verifyCode_url: base_url + "captcha/get", //获取验证码
    bindMobile_url: base_url + "user/bindMobile", //普通用户绑定手机号
    coupons_bag_info_url: base_url + "couponsbag/info",//我的卡包内的卡劵详情
    coupons_repurchase_url: base_url + "couponsback/add", //卡券回购申请
    coupons_search_url: base_url + "couponsbag/searchList", //搜索朋友的卡劵

    receive_gift_url: base_url + "PrizeActivity/getQrcode", //支付成功领取礼品
    Lottery_url: base_url + "Lottery/info",//抽奖九宫格
    Lottery_start_url: base_url + "Lottery/start",//启动抽奖
    Lottery_submit_url: base_url + "Lottery/addressSub",//奖品邮寄提交
  }
})